package com.gxa.clientadmin.pojo;

/*
 *
 *@author leijun
 *
 *@creating 2020/11/16 11:23
 *
 */

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.util.Date;

/**
 * @ClassName Logs
 * @Description TODO
 * @Author 俊
 * @Date 2020/11/16 11:23
 * @Version 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "tb_logs")
public class Logs {
    @Id
    @Column(name = "log_id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;

    @Column(name = "log_username")
    private String username;

    @Column(name = "log_date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" ,timezone = "GMT+8")
    private Date date;

    @Column(name = "log_ip")
    private String ip;

    @Column(name = "log_record")
    private String record;
}
